package com.token.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 用户注册表
 * </p>
 *
 * @author 冯政尚
 * @since 2019-07-30
 */
@ApiModel(value="User对象", description="用户注册表")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "令牌")
    @TableField("token")
    private String token;

    @ApiModelProperty(value = "回执")
    @TableField("receipt")
    private String receipt;

    @ApiModelProperty(value = "手机号")
    @TableField("tel")
    private String tel;

    @ApiModelProperty(value = "手机号是否绑定 1未绑定 2绑定")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private Long updateTime;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "手机号状态")
    @TableField("tel_status")
    private Integer telStatus;

    @ApiModelProperty(value = "提取码")
    @TableField("extraction_code")
    private String extractionCode;

    @ApiModelProperty(value = "令牌2")
    @TableField("token2")
    private String token2;

    @ApiModelProperty(value = "禁用号段")
    @TableField(exist = false)
    private String pp;
    @TableField(exist = false)
    private String ss;
    @TableField(exist = false)
    private Integer tokenNumber;
    /**
     *  前台需要转日期格式
     */
    @TableField(exist = false)
    private String createTimes;


    public Integer getTokenNumber() {
        return tokenNumber;
    }

    public void setTokenNumber(Integer tokenNumber) {
        this.tokenNumber = tokenNumber;
    }

    public String getSs() {
        return ss;
    }

    public void setSs(String ss) {
        this.ss = ss;
    }

    @TableField(exist = false)
    private String updateTimes;

    public String getToken2() {
        return token2;
    }

    public void setToken2(String token2) {
        this.token2 = token2;
    }

    public String getPp() {
        return pp;
    }

    public void setPp(String pp) {
        this.pp = pp;
    }

    public String getCreateTimes() {
        return createTimes;
    }

    public void setCreateTimes(String createTimes) {
        this.createTimes = createTimes;
    }

    public String getUpdateTimes() {
        return updateTimes;
    }

    public void setUpdateTimes(String updateTimes) {
        this.updateTimes = updateTimes;
    }

    public Integer getTelStatus() {
        return telStatus;
    }

    public void setTelStatus(Integer telStatus) {
        this.telStatus = telStatus;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getReceipt() {
        return receipt;
    }

    public void setReceipt(String receipt) {
        this.receipt = receipt;
    }
    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }
    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public String getExtractionCode() {
        return extractionCode;
    }

    public void setExtractionCode(String extractionCode) {
        this.extractionCode = extractionCode;
    }


    @Override
    protected Serializable pkVal() {
        return this.id;
    }





    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", token='" + token + '\'' +
                ", receipt='" + receipt + '\'' +
                ", tel='" + tel + '\'' +
                ", status='" + status + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", remarks='" + remarks + '\'' +
                ", telStatus=" + telStatus +
                ", extractionCode='" + extractionCode + '\'' +
                ", token2='" + token2 + '\'' +
                ", pp='" + pp + '\'' +
                ", ss='" + ss + '\'' +
                ", createTimes='" + createTimes + '\'' +
                ", updateTimes='" + updateTimes + '\'' +
                ", tokenNumber='" + tokenNumber + '\'' +
                '}';
    }
}
